package cn.tangsihai.hrm.mapper;

import cn.tangsihai.hrm.domain.Permission;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author sihai.tang
 * @since 2021-11-22
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    // 根据用户id查询权限
    List<Permission> selectPermissionsByUserId(Long loginId);
}
